package com.zsummer.demo.cloudfeignprovider;

import com.sun.media.jfxmediaimpl.HostUtils;
import org.apache.catalina.Host;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.net.util.IPAddressUtil;

import java.net.InetAddress;

@SpringBootApplication
public class CloudFeignProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudFeignProviderApplication.class, args);
    }

    @RestController
    public class TestController {

        @GetMapping("/hello")
        public String hello() {
            System.out.println("hello");
            return "hello";
        }

    }
}
